package com.example.controller;

import com.example.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("cache")
@RestController
public class CacheController {
    @Resource
    private TestService testService;

    @GetMapping("/test")
    public void test(){
        testService.add("123");
    }
}
